using System;
using System.Collections;
using System.Collections.Generic;

using BVMB.DataLayer.Base;

namespace BVMB.DataLayer.BusinessObjects
{
    public partial class BaoCaoThang : BusinessBase<int>
    {
        #region Declarations

		private int _soChuyenBay = default(Int32);
		private decimal _tongDoanhThu = default(Decimal);
		private double _tyLe = default(Double);
		private int _thang = default(Int32);
		
		private BaoCaoDoanhThuNam _baoCaoDoanhThuNam = null;
		
		private IList<ChiTietBaoCaoThang> _chiTietBaoCaoThangs = new List<ChiTietBaoCaoThang>();
		
		#endregion

        #region Constructors

        public BaoCaoThang() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_soChuyenBay);
			sb.Append(_tongDoanhThu);
			sb.Append(_tyLe);
			sb.Append(_thang);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual int SoChuyenBay
        {
            get { return _soChuyenBay; }
			set
			{
				OnSoChuyenBayChanging();
				_soChuyenBay = value;
				OnSoChuyenBayChanged();
			}
        }
		partial void OnSoChuyenBayChanging();
		partial void OnSoChuyenBayChanged();
		
		public virtual decimal TongDoanhThu
        {
            get { return _tongDoanhThu; }
			set
			{
				OnTongDoanhThuChanging();
				_tongDoanhThu = value;
				OnTongDoanhThuChanged();
			}
        }
		partial void OnTongDoanhThuChanging();
		partial void OnTongDoanhThuChanged();
		
		public virtual double TyLe
        {
            get { return _tyLe; }
			set
			{
				OnTyLeChanging();
				_tyLe = value;
				OnTyLeChanged();
			}
        }
		partial void OnTyLeChanging();
		partial void OnTyLeChanged();
		
		public virtual int Thang
        {
            get { return _thang; }
			set
			{
				OnThangChanging();
				_thang = value;
				OnThangChanged();
			}
        }
		partial void OnThangChanging();
		partial void OnThangChanged();
		
		public virtual BaoCaoDoanhThuNam BaoCaoDoanhThuNam
        {
            get { return _baoCaoDoanhThuNam; }
			set
			{
				OnBaoCaoDoanhThuNamChanging();
				_baoCaoDoanhThuNam = value;
				OnBaoCaoDoanhThuNamChanged();
			}
        }
		partial void OnBaoCaoDoanhThuNamChanging();
		partial void OnBaoCaoDoanhThuNamChanged();
		
		public virtual IList<ChiTietBaoCaoThang> ChiTietBaoCaoThangs
        {
            get { return _chiTietBaoCaoThangs; }
            set
			{
				OnChiTietBaoCaoThangsChanging();
				_chiTietBaoCaoThangs = value;
				OnChiTietBaoCaoThangsChanged();
			}
        }
		partial void OnChiTietBaoCaoThangsChanging();
		partial void OnChiTietBaoCaoThangsChanged();
		
        #endregion
    }
}
